* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f2f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a73e8;
    margin-bottom: 20px;
    text-align: center;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #5f6368;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border: 1px solid #dadce0;
    border-radius: 5px;
    resize: vertical;
    font-family: monospace;
    font-size: 14px;
}

button {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1557b0;
}

/* 新增上传区域样式 */
.upload-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

#image-upload {
    margin: 10px 0;
    padding: 5px;
}

#upload-preview {
    margin: 10px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
}

#base64-output {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    background-color: #f8f9fa;
}

/* 修改复制按钮样式 */
.button-group {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.small-btn {
    padding: 6px 12px;  /* 减小按钮尺寸 */
    font-size: 14px;   /* 减小字体大小 */
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.small-btn:hover {
    background-color: #1557b0;
}

.copy-message {
    color: #1e8e3e;
    margin-top: 5px;
    display: none;
    font-size: 14px;
    text-align: right;
}
.output-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.output-container textarea {
    flex: 1;
    margin-top: 0;
}

#copy-btn {
    white-space: nowrap;
    padding: 10px 20px;
}

.copy-message {
    color: #1e8e3e;
    margin-top: 5px;
    display: none;
    font-size: 14px;
}
.output-section {
    border-top: 1px solid #dadce0;
    padding-top: 20px;
}

h2 {
    color: #5f6368;
    margin-bottom: 15px;
}

#image-container {
    width: 100%;
    min-height: 200px;
    border: 1px dashed #dadce0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#preview-image {
    max-width: 100%;
    max-height: 500px;
    display: none;
}

.error {
    color: #d93025;
    margin-top: 10px;
    display: none;
}


/* 新增导航样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dadce0;
}

nav a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}